package com.ruoyi.system.domain.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.system.domain.Exam;

import java.util.Date;

public class ExamPo {
    /** 考试id */
    @Excel(name = "考试id")
    private Long examId;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 考卷id */
    @Excel(name = "考卷id")
    private Long paperId;

    private String name;

    private Long count;

    private String producer;

    /** 地点 */
    @Excel(name = "地点")
    private String location;


    public Long getExamId() {
        return examId;
    }

    public void setExamId(Long examId) {
        this.examId = examId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public String getProducer() {
        return producer;
    }

    public void setProducer(String producer) {
        this.producer = producer;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }


    public ExamPo(Long examId, Date startTime, Date endTime, Long paperId, String name, Long count, String producer, String location) {
        this.examId = examId;
        this.startTime = startTime;
        this.endTime = endTime;
        this.paperId = paperId;
        this.name = name;
        this.count = count;
        this.producer = producer;
        this.location = location;
    }
    public ExamPo(Exam exam,String name, Long count, String producer){
        this.examId = exam.getExamId();
        this.startTime = exam.getStartTime();
        this.endTime = exam.getEndTime();
        this.paperId = exam.getPaperId();
        this.name = name;
        this.count = count;
        this.producer = producer;
        this.location = exam.getLocation();
    }
}
